this._parent = parent;
}
- vfunc_button_press_event(buttonEvent) {
+ vfunc_button_press_event() {
if (!this._activatable)
- return super.vfunc_button_press_event(buttonEvent);
+ return Clutter.EVENT_PROPAGATE;
// This is the CSS active state
this.add_style_pseudo_class('active');
return Clutter.EVENT_PROPAGATE;
}
- vfunc_button_release_event(buttonEvent) {
+ vfunc_button_release_event() {
if (!this._activatable)
- return super.vfunc_button_release_event(buttonEvent);
+ return Clutter.EVENT_PROPAGATE;
this.remove_style_pseudo_class('active');
this.activate(Clutter.get_current_event());
vfunc_touch_event(touchEvent) {
if (!this._activatable)
- return super.vfunc_touch_event(touchEvent);
+ return Clutter.EVENT_PROPAGATE;
if (touchEvent.type == Clutter.EventType.TOUCH_END) {
this.remove_style_pseudo_class('active');